home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d2 / pcwiz01.arc / ATTRIB.INS next >
Text File  |  1991-08-22  |  2KB  |  70 lines

  1. ATTRIB      Used to change or display the "attributes"
  2.             (R = Read/Write and A = Archive) of a file.
  3.  
  4. Format:     ATTRIB [+R:-R][+A:-A] [Path][FileSpec] [/S]
  5.  
  6.    +R makes the FileSpec(s) attribute READ-ONLY, which
  7.       prevents the file from being changed or deleted.
  8.  
  9.    -R removes the READ-ONLY setting, allowing changes
  10.       to the file to be made and deletion of the file
  11.       to be accomplished.
  12.  
  13.    +A sets the ARCHIVE bit of the FileSpec(s) which
  14.       allows the file(s) to be included in BACKUPs.
  15.  
  16.    -A resets the ARCHIVE bit of the FileSpec(s) which
  17.       prevents the file(s) from being BACKed-UP even
  18.       when a /M switch with BACKUP and XCOPY is used.
  19.    /S applies the command to sub-directories.
  20.  
  21. Example:     ATTRIB +R C:\AUTOEXEC.BAT
  22.  
  23.    Sets the read\write attribute of the AUTOEXEC.BAT
  24.    file contained in root directory on drive C: to
  25.    READ-ONLY which prevents its accidental deletion
  26.    and precludes unauthorized changes.
  27.  
  28. Example:     ATTRIB +R C:\DOS\*.*
  29.  
  30.    Sets the attribute of ALL files contained in the
  31.    \DOS directory on drive C: to READ-ONLY.
  32.  
  33. Example:     ATTRIB +R D:\*.BAT /S
  34.  
  35.    Sets the attribute of ALL files with a .BAT ext
  36.    in ALL directories of drive D: to READ-ONLY.
  37. Example:     ATTRIB -R D:\*.BAT /S
  38.  
  39.    Removes the READ-ONLY setting of ALL files with
  40.    a .BAT ext in ALL directories on drive D.
  41.  
  42. Example:     ATTRIB +A C:\123\*.WK1 /S
  43.  
  44.   Sets the ARCHIVE bit of ALL files with a .WK1
  45.   ext in C:\123 directory and \123 sub-directories
  46.   which will ensure that they are INCLUDED in all
  47.   BACKUPs even when the /M switch of BACKUP is used.
  48.  
  49. Example:     ATTRIB -A C:\AUTOEXEC.BAT
  50.  
  51.    Resets ARCHIVE bit of the AUTOEXEC.BAT file in
  52.    the root directory of drive C: which EXCLUDES it
  53.    from being backed-up during execution of BACKUP
  54.    operation when the /M switch of BACKUP is used.
  55. Example:     ATTRIB C:\AUTOEXEC.BAT
  56.  
  57.   Displays attribute settings for the AUTOEXEC.BAT
  58.   file contained in the root directory of drive C.
  59.  
  60. Example:     ATTRIB D:\*.BAT /S >LPT1
  61.  
  62.   Displays attribute settings for ALL files with a
  63.   *.BAT ext that are contained on the root directory
  64.   and ALL sub-directories of drive D. The >LPT1
  65.   parameter REDIRECTS the output of this command to
  66.   your printer instead of displaying it on-screen.
  67.  
  68.  
  69. [*]  Use of WILDCARDS (*) in FileSpec(s) is allowed.
  70.